package edu.kjxy.day01.t7;

/**
 * 功能:判断当前线程是否处于活动状态
 * 作者:程序员欧阳子韩
 * 日期:2024/1/31 19:23
 */
public class RunTest {
    public static void main(String[] args) throws InterruptedException {
        MyThread myThread = new MyThread();
        System.out.println("begin ==" + myThread.isAlive());
        myThread.start();
        Thread.sleep(1000);
        System.out.println("end ==" + myThread.isAlive());
    }
}
